package com.bdqn.hospital.service.impl;

import com.bdqn.hospital.mapper.MedicalAdviceMapper;
import com.bdqn.hospital.pojo.MedicalAdvice;
import com.bdqn.hospital.service.MedicalAdviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 15:00
 * @Description: com.bdqn.hospital.service.impl
 */
@Service
public class MedicalAdviceServiceImpl implements MedicalAdviceService {
    @Autowired
    private MedicalAdviceMapper medicalAdviceMapper;
    @Override
    public Integer insert(MedicalAdvice medicalAdvice) {
        return medicalAdviceMapper.insert(medicalAdvice);
    }

    @Override
    public MedicalAdvice getByRegistryId(Integer registryId) {
        return medicalAdviceMapper.getByRegistryId(registryId);
    }
}
